package com.soso.taste.service;

import java.util.ArrayList;
import java.util.List;

import com.soso.taste.dao.TasteDao;
import com.soso.taste.dao.TasteDaoImpl;
import com.soso.taste.pojo.Amass;
import com.soso.taste.pojo.Taste;

public class TasteServiceImpl implements TasteService {
	private static TasteServiceImpl tasteserviceimpl = new TasteServiceImpl();
	private TasteDao tastedao = new TasteDaoImpl();
	private TasteServiceImpl(){}
	public static TasteServiceImpl getInstance(){
		return tasteserviceimpl;
	}
	
	public int Save(Taste taste) {
		return tastedao.Save(taste);
	}
	public int IsExist(String openid, String href) {
		return tastedao.IsExist(openid, href);
	}
	public int Save(List<Amass> amasses) {
		return tastedao.Save(amasses);
	}
	public int getSum(String tablename) {
		return tastedao.getSum(tablename);
	}
	public ArrayList<Object> getLists(String tablename, int nowpage, int max) {
		return tastedao.getLists(tablename, nowpage, max);
	}

}
